import remove from './remove';

export default async function removeJobByIds(
	resolve,
	source,
	args,
	context,
	info
) {
	const ids = args.filter?._ids || [];
	args.filter = { _ids: ids };
	for (const jobId of ids) {
		await remove({ context, jobId });
	}
	return resolve(source, args, context, info);
}
